home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / src / midaslin.mak < prev    next >
Encoding:
Text File  |  1997-01-16  |  5.2 KB  |  197 lines

  1. #*      midaslinux.mak
  2. #*
  3. #* Make script for MIDAS Sound System Linux version
  4. #*
  5. #* $Id: Makefile,v 1.18 1996/10/07 10:18:26 jpaana Exp $
  6. #*
  7. #* Copyright 1996 Petteri Kangaslampi and Jarno Paananen
  8. #*
  9. #* This file is part of the MIDAS Sound System, and may only be
  10. #* used, modified and distributed under the terms of the MIDAS
  11. #* Sound System license, LICENSE.TXT. By continuing to use,
  12. #* modify or distribute this file you indicate that you have
  13. #* read the license and understand and accept it fully.
  14. #*
  15.  
  16.  
  17. # Destination directory for midp executable
  18. DEST = /usr/local/bin
  19. LIBDEST = /usr/lib
  20.  
  21.  
  22. CPP = gcc
  23.  
  24. # The safest options
  25. #CPPOPTS = -O2 -fomit-frame-pointer -m486 -g -fpack-struct -Wall -D__LINUX__ --DDEBUG
  26.  
  27. # For Pentium optimizing gcc 2.7.2p
  28. #CPPOPTS = -O6 -frisc -fomit-frame-pointer -mpentium -g -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG
  29.  
  30. # For gcc 2.7.2.1 (or any "normal" gcc) with pthreads
  31. CPPOPTS = -O6 -fomit-frame-pointer -m486 -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG -shared -D_REENTRANT
  32.  
  33. # For gcc 2.7.2p with pthreads
  34. #CPPOPTS = -O6 -frisc -fomit-frame-pointer -mpentium -bpentium-linux -V2.7.2p -fpack-struct -fstrength-reduce -Wall -D__LINUX__ -DDEBUG -shared -D_REENTRANT
  35.  
  36.  
  37. ASM = gcc
  38. ASMOPTS = $(CPPOPTS)
  39. LINK = gcc -lncurses -lpthread -L. -o
  40. LIB = ar
  41. TOUCH = /usr/bin/touch
  42.  
  43. .SUFFIXES:
  44. .SUFFIXES: .c .h .S .o .pic
  45.  
  46. OBJS = midas.o midasdll.o midasfx.o dsm.o dsmmix.o mmem.o errors.o mutils.o postproc.o mglobals.o \
  47.        gmplayer.o gmpcmds.o file.o rawfile.o loadmod.o loadxm.o loads3m.o \
  48.        mpoll.o oss.o midasstr.o
  49.  
  50. SHOBJS = midas.pic midasdll.pic midasfx.pic dsm.pic dsmmix.pic mmem.pic errors.pic mutils.pic \
  51.        postproc.pic mglobals.pic gmplayer.pic gmpcmds.pic file.pic rawfile.pic loadmod.pic loadxm.pic loads3m.pic \
  52.        mpoll.pic oss.pic midasstr.pic
  53.  
  54.  
  55. all :             libs
  56.  
  57. libs:        libmidas.a libmidas.so
  58.  
  59. %.o:            %.c
  60.         $(CPP) $(CPPOPTS) -c $< -o $@
  61.  
  62. %.o:            %.S
  63.         $(ASM) $(ASMOPTS) -c $< -o $@
  64.  
  65. %.pic:            %.c
  66.         $(CPP) $(CPPOPTS) -fpic -c $< -o $@
  67.  
  68. %.pic:            %.S
  69.         $(ASM) $(ASMOPTS) -fpic -c $< -o $@
  70.  
  71. libmidas.a:    $(OBJS)
  72.         rm -f libmidas.a
  73.         $(LIB) r libmidas.a $(OBJS)
  74.         ranlib libmidas.a
  75.  
  76. libmidas.so:     $(SHOBJS)
  77.             rm -f libmidas.so
  78.         $(CPP) -shared -Wl,-soname,libmidas.so.0 -o libmidas.so.0.6 $(SHOBJS) 
  79.         ln -sf libmidas.so.0.6 libmidas.so
  80.  
  81. convert:    dsmmix.wdisasm
  82.         sed -e s/_// -e s/+// -e s/.bss/.lcomm/ -e s/repe/rep\;/ dsmmix.wdisasm > dsmmix.S
  83.         sed -e s/_// -e s/+// -e s/.bss/.lcomm/ -e s/repe/rep\;/ postproc.wdisasm > postproc.S        
  84.  
  85.  
  86. midas.o :     midas.c midas.h
  87.  
  88. midasdll.o :     midasdll.c midasdll.h midas.h
  89.  
  90. midasfx.o :     midasfx.c midasfx.h midas.h
  91.  
  92. gmplayer.o :     gmplayer.c lang.h mtypes.h errors.h sdevice.h gmplayer.h mmem.h
  93.  
  94. gmpcmds.o :     gmpcmds.c lang.h mtypes.h errors.h sdevice.h gmplayer.h
  95.  
  96. loadmod.o :     loadmod.c lang.h mtypes.h errors.h mglobals.h mmem.h file.h \
  97.         sdevice.h gmplayer.h mutils.h
  98.  
  99. loadxm.o :     loadxm.c lang.h mtypes.h errors.h mglobals.h mmem.h file.h \
  100.         sdevice.h gmplayer.h mutils.h xm.h
  101.  
  102. loads3m.o :     loads3m.c lang.h mtypes.h errors.h mglobals.h mmem.h file.h \
  103.         sdevice.h gmplayer.h mutils.h
  104.  
  105. file.o :     file.c lang.h mtypes.h errors.h mmem.h rawfile.h file.h
  106.  
  107. rawfile.o :     rawfile.c lang.h mtypes.h errors.h mmem.h rawfile.h
  108.  
  109. dsm.o :     dsm.c lang.h errors.h mmem.h dsm.h sdevice.h dsm.h mutils.h \
  110.         mglobals.h
  111.  
  112. mmem.o :     mmem.c lang.h errors.h mmem.h
  113.  
  114. errors.o :     errors.c lang.h errors.h
  115.  
  116. mutils.o :     mutils.c lang.h mutils.h
  117.  
  118. mpoll.o :     mpoll.c mpoll.h lang.h midas.h
  119.  
  120. dsmmix.o :     dsmmix.S
  121.  
  122. mixsd.o :     mixsd.c lang.h mtypes.h errors.h mmem.h mixsd.h dma.h sdevice.h dsm.h
  123.  
  124. postproc.o :     postproc.S
  125.  
  126. oss.o :     oss.c sdevice.h lang.h mtypes.h errors.h mmem.h sdevice.h
  127.  
  128. mglobals.o :     mglobals.c mglobals.h
  129.  
  130. midas.h :     lang.h mtypes.h errors.h mglobals.h mmem.h file.h sdevice.h \
  131.         gmplayer.h dsm.h mutils.h rawfile.h mpoll.h midasfx.h 
  132.  
  133.  
  134. clean:
  135.         rm -f *.o *.pic *~ midp libmidas.*
  136.  
  137. #* $Log: Makefile,v $
  138. #* Revision 1.18  1996/10/07 10:18:26  jpaana
  139. #* Fixed
  140. #*
  141. #* Revision 1.17  1996/09/28 09:00:44  jpaana
  142. #* Added shared libraries (for ELF only, as usual) support
  143. #*
  144. #* Revision 1.16  1996/09/28 08:12:40  jpaana
  145. #* Added midasdll.*
  146. #*
  147. #* Revision 1.15  1996/09/28 06:50:36  jpaana
  148. #* Added midasfx.h and midasstr.h
  149. #*
  150. #* Revision 1.14  1996/09/21 17:18:01  jpaana
  151. #* Added mpoll.c
  152. #*
  153. #* Revision 1.13  1996/09/21 16:49:26  jpaana
  154. #* Changed uss to oss
  155. #*
  156. #* Revision 1.12  1996/09/15 09:24:40  jpaana
  157. #* Still some tweaking with the options
  158. #*
  159. #* Revision 1.11  1996/09/14 16:27:17  jpaana
  160. #* Commented the various compiler options
  161. #*
  162. #* Revision 1.10  1996/09/14 16:13:01  jpaana
  163. #* readded pthreads
  164. #*
  165. #* Revision 1.9  1996/09/08 20:36:32  jpaana
  166. #* And still
  167. #*
  168. #* Revision 1.8  1996/09/08 20:32:32  jpaana
  169. #* Modified some compiler flags
  170. #*
  171. #* Revision 1.7  1996/08/03 13:16:59  jpaana
  172. #* Added non-Pthread configuration
  173. #*
  174. #* Revision 1.6  1996/08/02 19:00:41  jpaana
  175. #* Added libmidas.a
  176. #*
  177. #* Revision 1.5  1996/06/05 19:40:35  jpaana
  178. #* Modified for pthreads
  179. #*
  180. #* Revision 1.4  1996/05/25 15:49:57  jpaana
  181. #* Still fixed dependencies
  182. #*
  183. #* Revision 1.3  1996/05/24 20:40:12  jpaana
  184. #* Fixed dependencies
  185. #*
  186. #* Revision 1.2  1996/05/24 16:19:39  jpaana
  187. #* Fixed to actually work
  188. #*
  189. #* Revision 1.1  1996/05/24 14:37:07  jpaana
  190. #* Initial revision
  191. #*
  192.  
  193.  
  194.  
  195.  
  196.  
  197.